<template>
    <div class="detail">
        <div class="top">
            <div class="title">{{ hosptialStore.hospitalInfo.hospital?.hosname }}</div>
            <div class="level">{{ hosptialStore.hospitalInfo.hospital?.param.hostypeString }}</div>
        </div>
        <div class="info">
            <div class="left">
                <img :src="`data:image/jpeg;base64,${hosptialStore.hospitalInfo.hospital?.logoData}`" alt="">
            </div>
            <div class="right">
                <div class="detail_rule">
                    <h1>位置信息</h1>
                    <div class="address">
                        具体位置:{{  hosptialStore.hospitalInfo.hospital?.param.fullAddress }}
                    </div>
                    <div class="route">
                        具体路线:{{ hosptialStore.hospitalInfo.hospital?.route }}
                    </div>
                </div>
            </div>
        </div>
        <div class="footer">
            <h1>医院介绍</h1>
            <p>{{ hosptialStore.hospitalInfo.hospital?.intro }}</p>
        </div>
    </div>
</template>

<script setup lang="ts">
//引入仓库数据
import useDetailStore from '@/store/modules/hosptialDetail'
const hosptialStore=useDetailStore()
</script>

<style lang="less" scoped>
.detail{
    .top{
        display: flex;
        align-items: center;
        margin-bottom: 40px;
        .title{
            font-size: 20px;
            font-weight: 700;
            margin-right: 20px;
        }
        .level{
            color: #7f7f7f;
        }
    }
    .info{
        display: flex;
        .left{
            img{
            width: 80px;
            height: 80px;
            border-radius: 50%;
        }
        }
        .right{
            flex: 1;
            margin-left: 8px;
            .address,.route{
                margin-top: 10px;
                color: #7f7f7f;
                font-size: 14px;
            }
        }
        
    }
    .footer{
        margin-top: 20px;
        h1{
            font-weight: 900;
        }
        p{
            margin-top: 10px;
            color: #7f7f7f;
        }
    }
}
</style>